package mn.idax.exchange.otc.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * Create by jack_huang on 2018/8/13
 */
@Getter
@AllArgsConstructor
public enum CommentEnum {

    // 交易类型 1-购买 2-出售
    COMMENT_BUY(1,"BUY"),
    COMMENT__SELL(2,"SELL"),

//    COMMENT_GOOD(1,"好评"),
//    COMMENT_MEDIUM(0,"中评"),
//    COMMENT_NEGATIVE(-1,"差评"),

    COMMENT_BY_BUYER(1,"COMMENT_BY_BUYER"),
    COMMENT_BY_SELLER(2,"COMMENT_BY_SELLER"),

    ;
    private Integer code;
    private String msg;

//    public static String getMsg(int code){
//        for (CommentEnum value : CommentEnum.values()) {
//            if (value == COMMENT_GOOD || value == COMMENT_MEDIUM || value == COMMENT_NEGATIVE){
//                if (value.getCode() == code){
//                    return value.getMsg();
//                }
//            }
//
//        }
//        return null;
//    }

//    public static void main(String[] args) {
//        System.out.println(getMsg(1));
//    }
}
